<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		window.onload = function () {
			function* fibs(){
				let a = 0;
				let b = 1;
				while(true){
					yield a;
					[a, b] = [b, a + b];
				}
			}
			let[first, second, third, fourth, fifth, sixth, se] = fibs();

			console.log(first);   //0
			console.log(second);   //1
			console.log(third);   //1
			console.log(fourth);   //2
			console.log(fifth);   //3
			
			console.log(sixth);   //5
			console.log(se);   //8

			function f(){
				console.log('aaa');
			}

			let [x = f()] = [1];
			console.log(x);

		}

	</script>
</head>
<body>
	
</body>
</html>